import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}


export function removeToken() {
  return Cookies.remove(TokenKey)
}


export function setUserId(userId) {
  return Cookies.set('UserId', userId)
}

export function setWeUserId(weUserId){
  return Cookies.set('WeUserId', weUserId)
}

export function getUserId() {
  return Cookies.get('UserId')
}

export function getWeUserId(){
  return Cookies.get('WeUserId')
}

export function removeUserId() {
  return Cookies.remove('UserId')
}

export function setInsuranceType(insuranceType) {
  return localStorage.setItem('InsuranceType', insuranceType)
}


export function getInsuranceType() {
  return localStorage.getItem('InsuranceType')
}


export function removeInsuranceType() {
  return localStorage.removeItem('InsuranceType')
}

